package com.packet.service.impl;

import com.packet.mapper.DepartmentMapper;
import com.packet.pojo.Department;
import com.packet.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className:DepartmentServiceImpl
 * @Author:wallet_packet Date:2023-11-14 20:36
 * @Describe:
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> getDepartments() {
        return departmentMapper.getDepartments();
    }

    @Override
    public Department getDepartmentById(Integer id) {
        return departmentMapper.getDepartmentById(id);
    }
}
